import express from "express";
import {
  addCompanyAdmin,
  addCompanyBill,
  addCompanyBillCategory,
  addCompanyUser,
  addCompanyUserByNameOrEmailOrMobile,
  createCompany,
  deleteCompanyBill,
  deleteCompanyBillCategory,
  deleteCompanyUser,
  getCompanyAdmin,
  getCompanyBillCategory,
  getCompanyBillHistory,
  getCompanyBills,
  getCompanyUserList,
  removeCompanyAdmin,
  updateCompanyBill
} from "../controllers/company.js";
import {
  depotGoodsCreate,
  depotGoodsDelete,
  depotGoodsIn,
  depotGoodsOut,
  getDepotAllRecord,
  getDepotGoods,
  getDepotRecord
} from "../controllers/deopt.js";

let router = express.Router();

router.post('/createCompany', createCompany);
router.post('/getCompanyAdmin', getCompanyAdmin);
router.post('/addCompanyAdmin', addCompanyAdmin);
router.post('/removeCompanyAdmin', removeCompanyAdmin);
router.post('/getCompanyUserList', getCompanyUserList);
router.post('/addCompanyUser', addCompanyUser);
router.post('/addCompanyUserByNameOrEmailOrMobile', addCompanyUserByNameOrEmailOrMobile);
router.post('/deleteCompanyUser', deleteCompanyUser);

router.post('/getCompanyBillHistory', getCompanyBillHistory);
router.post('/addCompanyBill', addCompanyBill);
router.post('/getCompanyBills', getCompanyBills);
router.post('/updateCompanyBill', updateCompanyBill);
router.post('/deleteCompanyBill', deleteCompanyBill);
router.post('/getCompanyBillCategory', getCompanyBillCategory);
router.post('/addCompanyBillCategory', addCompanyBillCategory);
router.post('/deleteCompanyBillCategory', deleteCompanyBillCategory);


router.post('/depotGoodsCreate', depotGoodsCreate);
router.post('/depotGoodsIn', depotGoodsIn);
router.post('/depotGoodsOut', depotGoodsOut);
router.post('/depotGoodsDelete', depotGoodsDelete);
router.post('/getDepotGoods', getDepotGoods);
router.post('/getDepotRecord', getDepotRecord);
router.post('/getDepotAllRecord', getDepotAllRecord);


export default router;
